package com.example.netty.wechat;


import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * TODO: 这里要写注释的!
 */
public class Group {
    public String groupId;
    public String groupName;
    private List<User> users= new ArrayList<>();

    public Group(String groupName){
        this.groupName= groupName;
        this.groupId= genGroupId();
    }

    private String genGroupId(){
       return AppleGroupService.genGroupNo()+"";
    }

    public void addUsers(User user){
        users.add(user);
    }

    public List<User> getUsers(){
        return users;
    }
}
